Skip to content

Track inherited paginated rollout prefixes - #33930

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3b2b07a2dfee793d3b37b0a60529f856f167dbc1
Jul 18, 2026
Merged

Track inherited paginated rollout prefixes#33930
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3b2b07a2dfee793d3b37b0a60529f856f167dbc1

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 18, 2026

Copy link
Copy Markdown

Track inherited paginated rollout prefixes

What changed

  • Add HistoryPosition to identify a source thread and an exclusive rollout
    prefix by ordinal and JSONL byte offset.
  • Add optional history_base metadata to SessionMeta so a thread can record
    an inherited prefix of another paginated rollout.
  • Default missing history_base metadata to None and omit it when unset to
    preserve compatibility with existing rollout metadata.

Testing

  • Verify that legacy session metadata without history_base deserializes with
    no inherited history position.

## What changed

- Add `HistoryPosition` to identify a source thread and an exclusive rollout
  prefix by ordinal and JSONL byte offset.
- Add optional `history_base` metadata to `SessionMeta` so a thread can record
  an inherited prefix of another paginated rollout.
- Default missing `history_base` metadata to `None` and omit it when unset to
  preserve compatibility with existing rollout metadata.

## Testing

- Verify that legacy session metadata without `history_base` deserializes with
  no inherited history position.

GitOrigin-RevId: 3b2b07a2dfee793d3b37b0a60529f856f167dbc1
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/3b2b07a2dfee793d3b37b0a60529f856f167dbc1 branch from 8b8f077 to bcdc695 Compare July 18, 2026 00:07
@copyberry
copyberry Bot merged commit bcdc695 into main Jul 18, 2026
31 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/3b2b07a2dfee793d3b37b0a60529f856f167dbc1 branch July 18, 2026 00:08
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants